﻿/// <Summary> 
/// $Author: Nikhil Chinchwade 
/// This file contains DataContext information to hold the result data

/// $Creation Date : 
/// </summary>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.StorageClient;
using Microsoft.WindowsAzure.StorageClient.Protocol;
using System.Data.Services.Client;
using System.Data.Services.Common;

namespace MindTree.PerfWorkbench.Azure.Monitor.AzureMonLib
{

    /// <summary>
    /// TableServiceContext class to hold the monitoring result object
    /// </summary>
    internal class PerfDataContext : TableServiceContext
    {
        internal PerfDataContext(string baseAddress, StorageCredentials cred)
            :base (baseAddress,cred)
        {
        }

        internal const string PerfTableName = "WADPerformanceCountersTable";

        /// <summary>
        /// DataTable which provides dataservice query
        /// </summary>
        public DataServiceQuery<PerfDataRow> PerfDataTable
        {
            get
            {
                return base.CreateQuery<PerfDataRow>(PerfTableName);
            }
        }
    }
}
